﻿<navigation:Page 
           x:Class="AdminModule.Views.StructView" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           xmlns:viewmodel="clr-namespace:AdminModule.Views"
           xmlns:common="clr-namespace:System.Windows;assembly=System.Windows.Controls"
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:usercontrols="clr-namespace:AdminModule.UserControls.Common"
           xmlns:struct="clr-namespace:AdminModule.UserControls.StructView"
           d:DesignWidth="640" d:DesignHeight="480">

    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <StackPanel VerticalAlignment="Top" HorizontalAlignment="Left" Height="24" Orientation="Horizontal" x:Name="buttonsPanel">
            <Button ToolTipService.ToolTip="Добавить" Margin="5,0,0,0" Width="24" Height="24" x:Name="addButton" IsEnabled="False" Click="addButton_Click">
                <Image Source="/AdminModule;Component/Images/Add.png"></Image>
            </Button>
            <Button ToolTipService.ToolTip="Удалить" Margin="5,0,0,0" Width="24" Height="24" x:Name="deleteButton" IsEnabled="False" Click="deleteButton_Click">
                <Image Source="/AdminModule;Component/Images/Delete.png"></Image>
            </Button>
            <Button ToolTipService.ToolTip="Вырезать" Margin="5,0,0,0" Width="24" Height="24" x:Name="cutButton" IsEnabled="False" Click="cutButton_Click">
                <Image Source="/AdminModule;Component/Images/Cut.png"></Image>
            </Button>
            <Button ToolTipService.ToolTip="Вставить" Margin="5,0,0,0" Width="24" Height="24" x:Name="pasteButton" IsEnabled="False" Click="pasteButton_Click">
                <Image Source="/AdminModule;Component/Images/Paste.png"></Image>
            </Button>
            <Button ToolTipService.ToolTip="Заменить" Margin="5,0,0,0" Width="24" Height="24" x:Name="replaceButton" IsEnabled="False" Click="replaceButton_Click">
                <Image Source="/AdminModule;Component/Images/Sync.png"></Image>
            </Button>
            
            <Rectangle Width="1" Height="24" Fill="Black" Margin="8,0,8,0"></Rectangle>
            
            <Button ToolTipService.ToolTip="Сохранить" Margin="0,0,0,0" Width="24" Height="24" x:Name="saveButton" IsEnabled="False" Click="saveButton_Click">
                <Image Source="/AdminModule;Component/Images/Save.png"></Image>
            </Button>
            
            <Button ToolTipService.ToolTip="Обновить содержимое узла" Margin="5,0,0,0" Width="24" Height="24" Click="refreshNodeButton_Click" x:Name="refreshNodeButton" IsEnabled="False">
                <Image Source="/AdminModule;Component/Images/Redo.png"></Image>
            </Button>

            <Rectangle Width="1" Height="24" Fill="Black" Margin="8,0,8,0"></Rectangle>
            
            <Button Height="24" Width="140" Margin="0,0,0,0" x:Name="copyToTermButton" Click="copyToTermButton_Click">
                <StackPanel Orientation="Horizontal">
                    <Image Margin="0,0,5,0" Source="/AdminModule;Component/Images/Copy.png"></Image>
                    <TextBlock Text="Копировать всё..."></TextBlock>
                </StackPanel>
            </Button>
            <Button Height="24" Width="165" Margin="5,0,0,0" x:Name="copySelectedToTermButton" Click="copySelectedToTermButton_Click">
                <StackPanel Orientation="Horizontal">
                    <Image Margin="0,0,5,0" Source="/AdminModule;Component/Images/Copy.png"></Image>
                    <TextBlock Text="Копировать элемент..."></TextBlock>
                </StackPanel>
            </Button>
        </StackPanel>

        <ScrollViewer Margin="0,24,0,0" BorderThickness="0" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto">
            <StackPanel Orientation="Vertical">
                <struct:IndexMarkStruct Visibility="Collapsed" x:Name="indexMarkStruct"></struct:IndexMarkStruct>
                <struct:UniversityStruct Visibility="Collapsed" x:Name="universityStruct"></struct:UniversityStruct>
                <struct:GradationsStruct Visibility="Collapsed" x:Name="gradationsStruct"></struct:GradationsStruct>
            </StackPanel>
        </ScrollViewer>
        
        <usercontrols:ProgressBar IsVisibility="Collapsed" VerticalAlignment="Center" HorizontalAlignment="Center" x:Name="progressBar"></usercontrols:ProgressBar>
    </Grid>
</navigation:Page>
